using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
//using DSGCTableAdapters;

namespace Gestion_Comercial
{
    public partial class Clientes : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //DSGCTableAdapters.ClienteTableAdapter
           
        }

        protected void dsClientes_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
        {
            e.InputParameters["pUsuarioActual"] = HttpContext.Current.User.Identity.Name;
            string _rol = ""; //verifico si pertenece al rol de gerentes
            if (User.IsInRole(ConfigurationSettings.AppSettings["GerenteRol"]) == true)
                _rol = ConfigurationSettings.AppSettings["GerenteRol"];
            e.InputParameters["pRolActual"] = _rol;
        }
    }
}
